<?php
	require '../config.php';
	require '../inc/require.php';
	
	$chip_id = $_POST['chip_id'];
	$saldo = $_POST['saldo'];
	
	$chip = new Chip();
	$chip = $chip->get($chip_id);
	$chip->credit = $chip->credit + $saldo;
	$chip->save();
	

?>